package com.coocaa.ops.common.core.base.mybatis;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.coocaa.ops.common.core.base.entity.BaseEntity;

/**
 * @author bijiahao
 * @date : 2019/6/14.
 * @description Mybatis-plus查询操作模板
 *
 */
public class QueryTemplate<T extends BaseEntity> extends QueryWrapper<T> {

    public static <T extends BaseEntity>  QueryTemplate<T> getEqQueryTemplate(String column, Object param){
        QueryTemplate<T> queryTemplate = new QueryTemplate<>();
        queryTemplate.eq(column, param);
        return queryTemplate;
    }

}
